/*
 * @Author: ZAL 2177624751@qq.com
 * @Date: 2025-03-30 16:30:00
 * @LastEditors: ZAL 2177624751@qq.com
 * @LastEditTime: 2025-03-30 16:30:00
 * @FilePath: \shop_app_vue3\api\home.js
 * @Description: 首页相关API
 */
import request from '../utils/request.js';

// 获取轮播图列表
export const getBanners = () => {
    return request.get('/api/banner/list');
};

// 获取热销商品
export const getHotProducts = (limit = 10) => {
    return request.get(`/api/fruit/hot?limit=${limit}`);
};